//
//  FactoryModel.m
//  Lianxi2
//
//  Created by lanou on 16/7/3.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "FactoryModel.h"

@implementation FactoryModel

+ (BaseCell *)buildCellWithModel:(id)model tableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    
    BaseCell *cell = [tableView dequeueReusableCellWithIdentifier:[NSString stringWithFormat:@"%@_cell",NSStringFromClass([model class])] forIndexPath:indexPath];
    
    [cell setCellWithModel:model];
    
    return cell;
}

@end
